package com.open.capacity.notice.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.open.capacity.common.dto.ResponseEntity;
import com.open.capacity.notice.dmo.MessageRececiverDetail;
import com.open.capacity.notice.service.MessageRececiverDetailService;

import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;

/**
 * <p>
 * 前端控制器
 * </p>
 * 
 * @since 2024-05-07
 */
@RestController
@SuppressWarnings("all")
@RequiredArgsConstructor
@RequestMapping("/messageRececiverDetail")
public class MessageRececiverDetailController {

	private final MessageRececiverDetailService messageRececiverDetailService;

	/**
	 * 分页列表查询
	 *
	 * @param messageRececiverDetail
	 * @param page
	 * @return
	 */
	@ApiOperation(value = "接收组明细管理-分页列表查询", notes = "接收组明细管理-分页列表查询")
	@GetMapping(value = "/list")
	public ResponseEntity queryPageList(MessageRececiverDetail messageRececiverDetail, Page page) {
		IPage<MessageRececiverDetail> pageList = messageRececiverDetailService.page(page,
				Wrappers.query(messageRececiverDetail));
		return ResponseEntity.succeed(pageList);
	}

}
